<div class="row">
	<div class="col-xs-12">
		<div class="box">
			<div class="box-body">
				<ul class="indexsearch">
				#for(model:result.data.list)
					<li><a href="atta/download/#(model.id)" target="_blank">#(model.fragment)</a></li>
				#end
				</ul>
			</div>
			<div class="box-footer text-right">
				<div class="btn-group">
					<input id="lucene_index_page" type="hidden" value=""/>
                    <button type="button" class="btn btn-default btn-sm lucene_page_btn" data-page="#(result.data.previousPage)" title="上一页"><i class="fa fa-chevron-left"></i></button>
                    <button type="button" class="btn btn-default btn-sm lucene_page_btn" data-page="#(result.data.nextPage)" title="下一页"><i class="fa fa-chevron-right"></i></button>
                  </div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function() {
		$("button.lucene_page_btn").each(function(){
			var btn=$(this);
			var page=btn.data("page");
			if(""==page){
				btn.prop("disabled",true);
			}else{
				btn.click(function(){
					$("#lucene_index_page").val(page);
					_searchIndex(page);
				});
			}
		});
	});
</script>